package com.service.impl;

import com.bean.pojo.ItripComment;
import com.bean.vo.comment.CountVo;
import com.bean.vo.comment.ItripListCommentVO;
import com.bean.vo.comment.ItripScoreCommentVO;
import com.bean.vo.comment.ItripSearchCommentVO;
import com.dao.ItripCommentMapper;
import com.service.IItripCommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.util.PageAssistant;
import javafx.scene.control.Pagination;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 评论表 服务实现类
 * </p>
 *
 * @author astupidcoder
 * @since 2021-07-09
 */
@Service
public class ItripCommentServiceImpl extends ServiceImpl<ItripCommentMapper, ItripComment> implements IItripCommentService {

    @Autowired
    private ItripCommentMapper itripCommentMapper;

    @Override
    public ItripScoreCommentVO selectAvgCount(ItripComment ic) {
        return itripCommentMapper.selectAvgCount(ic);
    }

    @Override
    public CountVo allcommentCount(ItripComment ic) {
        return itripCommentMapper.allcommentCount(ic);
    }

    @Override
    public CountVo isokCount(ItripComment ic) {
        return itripCommentMapper.isokCount(ic);
    }

    @Override
    public CountVo improveCount(ItripComment ic) {
        return itripCommentMapper.improveCount(ic);
    }

    @Override
    public CountVo havingimgCount(ItripComment ic) {
        return itripCommentMapper.havingimgCount(ic);
    }

    @Override
    public List<ItripListCommentVO> getcommentlist(ItripSearchCommentVO isco) {
        return itripCommentMapper.getcommentlist(isco);
    }

    @Override
    public Integer getcommentlistCount(ItripSearchCommentVO isco) {
        return itripCommentMapper.getcommentlistCount(isco);
    }


}
